﻿<Window x:Class="XmlStudio.Dialogs.RemoveNodeDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:userControls="clr-namespace:XmlStudio.Resources.UserControls" 
        xmlns:loc="clr-namespace:Tomers.WPF.Localization;assembly=Tomers.WPF.Localization" 
        loc:Translate.Uid="EditTextNodeDialog.WindowTitle"
        Title="{loc:Translate 'Remove node'}"
        MinHeight="100" 
        MinWidth="300"
        WindowStartupLocation="CenterOwner"
        ResizeMode="CanResizeWithGrip"
        x:Name="RemoveNodeWindow"
        Style="{StaticResource XmlStudioDialogStyle}">
    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
        <Border BorderBrush="Gray" BorderThickness="1" Margin="{StaticResource DialogBoxMargin}" Background="{StaticResource DialogBackgoundBrush}">
            <Grid Margin="{StaticResource DialogBoxMargin}" >

                <Grid.RowDefinitions>
                    <RowDefinition Height="30*" />
                    <RowDefinition Height="30*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <TextBlock Margin="7" FontSize="14" MaxWidth="300" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="textTextBox" 
                           loc:Translate.Uid="RemoveNodeDialog.Question" Text="{loc:Translate 'Do you also want to remove the whole subtree with deleted node?'}" />

                <userControls:YesNoCancelButtons Grid.Row="1" Margin="0 7 0 0" YesClicked="YesClicked" NoClicked="NoClicked" CancelClicked="CancelClicked" />
            </Grid>
        </Border>
    </ScrollViewer>
</Window>
